if [[ -z ${ZSH_VERSION} ]]; then
  print -u2 -P '%F{red}<%= error %>You must use zsh to run install.zsh%f'
  return 1
fi

emulate -L zsh

_replace_home() {
  local abs_path=${1:A}
  local suffix=${abs_path#${<%= home %>:A}}
  if [[ ${abs_path} != ${suffix} ]]; then
    print -R '<%= home %>'${suffix}
  else
    print -R ${1}
  fi
}

setopt LOCAL_OPTIONS EXTENDED_GLOB
typeset -A ZTEMPLATES
readonly CLEAR_LINE=$'\E[2K\r'
ZIM_HOME_STR='<%= home %>/.zim'
